

        <g:set var="entityName" value="${message(code: 'leaveWord.label', default: 'LeaveWord')}" />
            <g:form method="post" >
                <g:hiddenField name="id" value="${leaveWordInstance?.id}" />
                <g:hiddenField name="version" value="${leaveWordInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="personname"><g:message code="leaveWord.personname.label" default="Personname" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveWordInstance, field: 'personname', 'errors')}">
                                    <g:textField name="personname" maxlength="50" value="${leaveWordInstance?.personname}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="contact"><g:message code="leaveWord.contact.label" default="Contact" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveWordInstance, field: 'contact', 'errors')}">
                                    <g:textField name="contact" maxlength="200" value="${leaveWordInstance?.contact}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="content"><g:message code="leaveWord.content.label" default="Content" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveWordInstance, field: 'content', 'errors')}">
                                    <g:textArea name="content" cols="40" rows="5" value="${leaveWordInstance?.content}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="student"><g:message code="leaveWord.student.label" default="Student" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveWordInstance, field: 'student', 'errors')}">
                                    <g:select name="student.id" class="select" from="${Student.list()}" optionKey="id" value="${leaveWordInstance?.student?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="teacher"><g:message code="leaveWord.teacher.label" default="Teacher" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveWordInstance, field: 'teacher', 'errors')}">
                                    <g:select name="teacher.id" class="select" from="${Teacher.list()}" optionKey="id" value="${leaveWordInstance?.teacher?.id}"  />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="createTime"><g:message code="leaveWord.createTime.label" default="Create Time" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: leaveWordInstance, field: 'createTime', 'errors')}">
                                    <g:datePicker name="createTime" class="select" precision="day" value="${leaveWordInstance?.createTime}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
